package cn.liccshop.core.backstage.sysRole.mapper;

import cn.liccshop.core.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author LiCC
 * @since 2019-04-06
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 通过角色获取该角色下的管理员用户
     * @param roleId
     * @return
     */
    List<Map<String, Object>> selectUserIdByRoleId(@Param(value = "roleId") String roleId);

}
